var max=0;function AsylumNavLink(parentId,linkId,order,href,linkText,target,width)
{this.linkId=linkId;this.parentId=parentId;this.order=order;this.href=href;this.linkText=linkText;this.target=target;this.width=width;};function AsylumNav(contId,layout,offset)
{this.menuCont=document.getElementById(contId);this.layout=layout;this.offset=(typeof offset=='undefined'?'Right':offset);this.menuItems=new Object();this.clickUnderCreated=false;};AsylumNav.prototype.AddLink=function(parentId,linkId,order,href,linkText,target,width)
{if(typeof this.menuItems[parentId]=='undefined')
{this.menuItems[parentId]=new Object();}
if(typeof width=="undefined")width=false;this.menuItems[parentId][linkId]=new AsylumNavLink(parentId,linkId,order,href,linkText,target,width);if(order>max){max=order;}};AsylumNav.prototype.CreateLevel=function(levelId,idPrefix)
{obj=this;div=document.createElement('div');div.id=idPrefix+levelId;div.levelId=levelId;div.idPrefix=idPrefix;div.className='levelDiv';div.onmouseout=function(e){obj.HideLevel(e);};div.subLevels=new Object();if(levelId!='0')
{div.style.visibility='hidden';div.className+=' subLevel';div.style.position='absolute';}
else
{div.className+=' topLevel';}
if(this.layout=='Horizontal')
{div.style.position='absolute';}
div.style.zIndex=10;if(this.menuCont){this.menuCont.appendChild(div);}
for(i=0;i<=max;i++){for(linkId in this.menuItems[levelId]){if(this.menuItems[levelId][linkId].order==i){linkDiv=document.createElement('div');linkDiv.id='asylumNavLinkDiv'+linkId;linkDiv.linkId=linkId;linkDiv.levelId=levelId;linkDiv.className='linkDiv';if(levelId=="0"){linkDiv.className+=" topLevel";if(this.menuItems[levelId][linkId].width){linkDiv.style.width=this.menuItems[levelId][linkId].width+"px";}}
div.appendChild(linkDiv);navLink=this.menuItems[levelId][linkId];a=document.createElement('a');a.id='asylumNavLink'+linkId;a.linkType='navMenu';a.linkId=linkId;a.levelId=navLink.parentId;a.parentId=navLink.parentId;if(navLink.href==''||navLink.href=='#')
{a.href='#';a.target='';a.style.cursor='default';}
else
{a.href=navLink.href;a.target=navLink.target;}
if(this.layout=='Vertical')
{a.innerHTML=navLink.linkText;}
else
{a.innerHTML=navLink.linkText.split(' ').join('&nbsp;');}
a.onmouseover=function(){obj.ShowLevel(this);};linkDiv.appendChild(a);if(linkId==pageId)
{a.className='activeLink';linkDiv.className+=' activeLink';topLink=this.GetTopLevelLink(navLink);if(typeof this.menuItems[topLink.linkId]!='undefined'&&navLink.levelId!='0')
{try{document.getElementById('asylumNavLink'+topLink.linkId).className+=' activeLink';document.getElementById('asylumNavLinkDiv'+topLink.linkId).className+=' activeLink';}catch(e){}}
if(document.getElementById("clickUnder")!=null)
{this.CreateClickUnder(topLink,true);}}
else
{}
if(typeof this.menuItems[linkId]!='undefined')
{div.subLevels[linkId]=true;}}}}
return div;};AsylumNav.prototype.Construct=function()
{if(this.menuCont==null){return;}
var obj=this;for(levelId in this.menuItems)
{this.CreateLevel(levelId,'asylumNavLevel');}
if(this.layout=='Vertical')
{if(typeof document.getElementById('tplMainSectors')!=null)
{ms=document.getElementById('tplMainSectors');ms.style.height=ms.offsetHeight;}}
else
{this.menuCont.style.height=document.getElementById('asylumNavLevel0').offsetHeight+'px';}
this.CreateBreadCrumbs();};AsylumNav.prototype.CreateClickUnder=function(navLink,active)
{if(typeof doneClickUnder=="undefined"){doneClickUnder=true;}else{return;}
if(document.getElementById("clickUnder")==null)return;obj=this;var linkId;if(this.layout=='Vertical')
{clickDiv=document.createElement('div');clickDiv.id="clickUnder";document.getElementById("clickUnder").appendChild(clickDiv);linkDiv=document.getElementById('asylumNavLinkDiv'+navLink.linkId);linkDiv.appendChild(clickDiv);}
else
{clickDiv=document.getElementById("clickUnder");}
var linkCount=0;for(linkId in this.menuItems[navLink.linkId])
{linkCount++;clickLinkDiv=document.createElement('div');clickLinkDiv.className='clickLinkDiv';clickLink=this.menuItems[navLink.linkId][linkId];txt=document.createTextNode(' ');clickDiv.appendChild(txt);a=document.createElement('a');a.id='asylumNavClickLink'+clickLink.linkId;a.className='clickLink';a.linkType='clickLink';a.linkId=linkId;a.levelId=clickLink.parentId;a.parentId=clickLink.parentId;if(clickLink.href==''||clickLink.href=='#'){a.href='#';a.target='';a.style.cursor='default';}else{a.href=clickLink.href;a.target=clickLink.target;}
if(this.layout=="Vertical"){a.innerHTML=clickLink.linkText;}else if(this.layout=="Horizontal-SubMenu"){if(clickLink.linkText.substring(0,1)==" "){a.innerHTML=clickLink.linkText.split(" ").join("&nbsp;");}else{a.innerHTML=clickLink.linkText;}}else{a.innerHTML=clickLink.linkText.split(" ").join("&nbsp;");}
a.onmouseover=function(){obj.HideAllLevels();obj.ShowLevel(this);};a.onmouseout=function(e){obj.HideLevel(e);};clickLinkDiv.appendChild(a);if(linkId==pageId)
{a.className='activeLink';clickLinkDiv.className+=' activeLink';}
clickDiv.appendChild(clickLinkDiv);txt=document.createTextNode(' ');clickDiv.appendChild(txt);}
if(linkCount==0||active==false)
{clickDiv.className='inactiveClickUnder';}
else
{clickDiv.className='activeClickUnder';}};AsylumNav.prototype.GetTopLevelLink=function(navLink)
{if(navLink.parentId=='0')
{return(navLink);}
while(1==1)
{navLink=this.GetParentLink(navLink);if(typeof navLink.parentId!='undefined')
{if(navLink.parentId=='0')
{break;}}}
return(navLink);};AsylumNav.prototype.GetParentLink=function(navLink)
{var levelId;var linkId;for(levelId in this.menuItems)
{for(linkId in this.menuItems[levelId])
{parNavLink=this.menuItems[levelId][linkId];if(parNavLink.linkId==navLink.parentId)
{return(parNavLink);}}}};AsylumNav.prototype.GetXPos=function(obj)
{var curleft=0;if(obj.offsetParent)
{while(obj.offsetParent&&obj.id!='navMenuCont')
{curleft+=obj.offsetLeft;obj=obj.offsetParent;}}
else if(obj.x)
curleft+=obj.x;return curleft;};AsylumNav.prototype.GetYPos=function(obj)
{var curtop=0;if(obj.offsetParent)
{while(obj.offsetParent&&obj.id!='navMenuCont')
{curtop+=obj.offsetTop;obj=obj.offsetParent;}}
else if(obj.y)
curtop+=obj.y;return curtop;};AsylumNav.prototype.ShowLevel=function(el)
{levelId=el.linkId;this.currentLevelId=levelId;window.clearTimeout(this.timeoutId);this.HideSubLevels(el.levelId);if(typeof this.menuItems[levelId]=='undefined')
{return;}
if(el.linkType=='clickLink')
{eP=document.getElementById('asylumNavClickLink'+el.linkId);eL=document.getElementById('asylumNavLevel'+levelId);SwapClass(eL,'subLevel','clickUnderSubLevel');}
else
{eP=document.getElementById('asylumNavLink'+levelId);eL=document.getElementById('asylumNavLevel'+levelId);SwapClass(eL,'clickUnderSubLevel','subLevel');}
if(eP.parentId=='0')
{switch(this.offset)
{case'Right':offsetX=(eP.offsetWidth);offsetY=0;break;case'Left':offsetX=(-eL.offsetWidth);offsetY=0;break;case'Bottom':offsetX=0;offsetY=eP.offsetHeight;eL.style.minWidth=eP.offsetWidth;break;}}
else
{switch(this.offset)
{case'Left':offsetX=(-eL.offsetWidth);offsetY=0;break;default:offsetX=(eP.offsetWidth);offsetY=0;break;}}
pX=this.GetXPos(eP);pY=this.GetYPos(eP);lX=pX+offsetX;lY=pY+offsetY;eL.style.position='absolute';$(eL).css({left:lX,top:lY});eL.style.visibility='visible';};AsylumNav.prototype.GetLevelWidth=function(levelId)
{maxWidth=0;for(linkId in this.menuItems[levelId])
{a=document.getElementById('asylumNavLink'+linkId);thisWidth=a.offsetWidth;if(thisWidth>maxWidth)
{maxWidth=thisWidth;}}
return(maxWidth);};AsylumNav.prototype.HideSubLevels=function(levelId,omitLevelId)
{if(typeof omitLevelId=='undefined')
{omitLevelId='0';}
eL=document.getElementById('asylumNavLevel'+levelId);for(levelId in eL.subLevels)
{this.HideSubLevels(levelId);if(levelId!=omitLevelId)
{eL=document.getElementById('asylumNavLevel'+levelId);eL.style.visibility='hidden';}}};AsylumNav.prototype.HideLevel=function(e)
{window.clearTimeout(this.timeoutId);if(!e)e=window.event;var el=(e.relatedTarget)?e.relatedTarget:e.toElement;var obj=this;var funct=function(){obj._HideLevel(el);};this.timeoutId=window.setTimeout(funct,1000);};AsylumNav.prototype._HideLevel=function(el)
{if(!el||el.id.substr(0,9)!='asylumNav'||(el.id.substr(0,9)=='asylumNav'&&el.style.visibility=='hidden'))
{this.HideAllLevels();}};AsylumNav.prototype.HideAllLevels=function()
{for(levelId in this.menuItems)
{if(levelId!='0')
{eL=document.getElementById('asylumNavLevel'+levelId);if(eL!=null)eL.style.visibility='hidden';}}};AsylumNav.prototype.CreateBreadCrumbs=function()
{if(document.getElementById("breadCrumbs")!=null)
{crumbsCont=document.getElementById("breadCrumbs");crumbsCont.style.display='none';crumbs='';homeLink='';for(levelId in this.menuItems)
{for(linkId in this.menuItems[levelId])
{navLink=this.menuItems[levelId][linkId];if(homeLink=='')
{homeLink='<a href="'+navLink.href+'" target="'+navLink.target+'">'
+navLink.linkText+'</a> &gt; ';}
if(linkId==pageId)
{i=0;parNavLink=this.GetParentLink(navLink);while(typeof parNavLink=='object')
{i++;crumbs='<a href="'+parNavLink.href+'" target="'+parNavLink.target+'">'
+parNavLink.linkText+'</a> &gt; '+crumbs;parNavLink=this.GetParentLink(parNavLink);}
if(i>1)
{crumbsCont.style.display='block';crumbsCont.innerHTML=homeLink+crumbs+'<span class="activeCrumb">'+navLink.linkText+'</span>';}
return(true);}}}}};function RemoveClass(el,className)
{var replaceName=(el.className.match(' '+className)?' '+className:className);el.className=el.className.replace(replaceName,'');};function AddClass(el,className)
{RemoveClass(el,className);el.className+=' '+className;};function SwapClass(el,removeClassName,addClassName)
{RemoveClass(el,removeClassName);AddClass(el,addClassName);};;$(function() {for (var i in tasks) {window.setTimeout(tasks[i], 0);}});function initMenu(){};$(function(){$("#navMenu").navmenu({pageInfo:{"a306400":{"P":0,"ID":313768,"C":306400,"O":0,"U":"http:\/\/www.valerofcu.org\/","N":"Home","T":"_top","R":"","RT":"_blank"},"a306401":{"P":306400,"ID":306743,"C":306401,"O":"1","U":"http:\/\/www.valerofcu.org\/about-us.html","N":"About Us","T":"_top","R":"","RT":"_blank"},"a313753":{"P":306401,"ID":313785,"C":313753,"O":"1","U":"http:\/\/www.valerofcu.org\/page313785.html","N":"Who Can Join","T":"_top","R":"","RT":"_blank"},"a313754":{"P":306401,"ID":313786,"C":313754,"O":"2","U":"http:\/\/www.valerofcu.org\/page313786.html","N":"Our Vision and Mission","T":"_top","R":"","RT":"_blank"},"a313755":{"P":306401,"ID":313787,"C":313755,"O":"3","U":"http:\/\/www.valerofcu.org\/page313787.html","N":"Hours and Locations","T":"_top","R":"","RT":"_blank"},"a313756":{"P":306401,"ID":313788,"C":313756,"O":"4","U":"http:\/\/www.valerofcu.org\/page313788.html","N":"Our History","T":"_top","R":"","RT":"_blank"},"a313757":{"P":306401,"ID":313789,"C":313757,"O":"5","U":"http:\/\/www.valerofcu.org\/page313789.html","N":"Employees","T":"_top","R":"","RT":"_blank"},"a377787":{"P":313757,"ID":388821,"C":377787,"O":"1","U":"http:\/\/www.valerofcu.org\/main-office.html","N":"Main Office","T":"_top","R":"","RT":"_blank"},"a388626":{"P":313757,"ID":388629,"C":388626,"O":"2","U":"http:\/\/www.valerofcu.org\/corpus-christi-branch.html","N":"Corpus Christi Branch","T":"_top","R":"","RT":"_blank"},"a377790":{"P":313757,"ID":388817,"C":377790,"O":"3","U":"http:\/\/www.valerofcu.org\/texas-city-branch.html","N":"Texas City Branch","T":"_top","R":"","RT":"_blank"},"a377786":{"P":313757,"ID":388819,"C":377786,"O":"4","U":"http:\/\/www.valerofcu.org\/houston-branch.html","N":"Houston Branch","T":"_top","R":"","RT":"_blank"},"a435744":{"P":313757,"ID":435745,"C":435744,"O":"5","U":"http:\/\/www.valerofcu.org\/port arthur branch.html","N":"Port Arthur Branch","T":"_top","R":"","RT":"_blank"},"a313758":{"P":306401,"ID":313790,"C":313758,"O":"6","U":"http:\/\/www.valerofcu.org\/page313790.html","N":"Board","T":"_top","R":"","RT":"_blank"},"a313759":{"P":306401,"ID":313791,"C":313759,"O":"7","U":"http:\/\/www.valerofcu.org\/page313791.html","N":"FAQ","T":"_top","R":"","RT":"_blank"},"a440726":{"P":306401,"ID":440729,"C":440726,"O":"8","U":"http:\/\/www.valerofcu.org\/newsletter.html","N":"Newsletter","T":"_top","R":"","RT":"_blank"},"a377908":{"P":306401,"ID":377909,"C":377908,"O":"9","U":"http:\/\/www.valerofcu.org\/copy-of-employment.html","N":"Employment","T":"_top","R":"","RT":"_blank"},"a377980":{"P":306401,"ID":377983,"C":377980,"O":"10","U":"http:\/\/www.valerofcu.org\/notices.html","N":"Notices","T":"_top","R":"","RT":"_blank"},"a306402":{"P":306400,"ID":306724,"C":306402,"O":"2","U":"http:\/\/www.valerofcu.org\/page306724.html","N":"Deposit Accounts","T":"_top","R":"","RT":"_blank"},"a306900":{"P":306402,"ID":312438,"C":306900,"O":"1","U":"http:\/\/www.valerofcu.org\/page312438.html","N":"Share Savings","T":"_top","R":"","RT":"_blank"},"a312349":{"P":306900,"ID":312439,"C":312349,"O":"1","U":"http:\/\/www.valerofcu.org\/special-savings.html","N":"Special Savings","T":"_top","R":"","RT":"_blank"},"a306901":{"P":306402,"ID":312440,"C":306901,"O":"2","U":"http:\/\/www.valerofcu.org\/page312440.html","N":"Share Draft Accounts","T":"_top","R":"","RT":"_blank"},"a312356":{"P":306901,"ID":312443,"C":312356,"O":"3","U":"https:\/\/www.clarkeamerican.com\/caccp\/catalogview.jsp?exp=P","N":"Check Reorder","T":"_blank","R":"https:\/\/www.clarkeamerican.com\/caccp\/catalogview.jsp?exp=P","RT":"_blank"},"a306902":{"P":306402,"ID":312444,"C":306902,"O":"3","U":"http:\/\/www.valerofcu.org\/page312444.html","N":"Share Certificates","T":"_top","R":"","RT":"_blank"},"a312357":{"P":306402,"ID":312445,"C":312357,"O":"4","U":"http:\/\/www.valerofcu.org\/ira.html","N":"IRA","T":"_top","R":"","RT":"_blank"},"a312360":{"P":306402,"ID":312446,"C":312360,"O":"5","U":"http:\/\/www.valerofcu.org\/money-market.html","N":"Money Market","T":"_top","R":"","RT":"_blank"},"a312367":{"P":306402,"ID":312447,"C":312367,"O":"6","U":"http:\/\/www.valerofcu.org\/debit-cards.html","N":"Debit Cards","T":"_top","R":"","RT":"_blank"},"a312370":{"P":306402,"ID":312450,"C":312370,"O":"7","U":"http:\/\/www.valerofcu.org\/atm-cards.html","N":"ATM Cards","T":"_top","R":"","RT":"_blank"},"a312385":{"P":306402,"ID":312452,"C":312385,"O":"8","U":"http:\/\/www.valerofcu.org\/direct-deposit-form.html","N":"Direct Deposit Form","T":"_top","R":"","RT":"_blank"},"a540851":{"P":306402,"ID":540852,"C":540851,"O":"9","U":"http:\/\/www.valerofcu.org\/deposit-insurance.html","N":"Deposit Insurance","T":"_top","R":"","RT":"_blank"},"a306403":{"P":306400,"ID":306725,"C":306403,"O":"3","U":"http:\/\/www.valerofcu.org\/page306725.html","N":"Loans","T":"_top","R":"","RT":"_blank"},"a306904":{"P":306403,"ID":312456,"C":306904,"O":"1","U":"http:\/\/www.valerofcu.org\/page312456.html","N":"Secured Loans","T":"_top","R":"","RT":"_blank"},"a312403":{"P":306904,"ID":312457,"C":312403,"O":"1","U":"http:\/\/www.valerofcu.org\/new-used-autos.html","N":"New and Used Autos","T":"_top","R":"","RT":"_blank"},"a312404":{"P":306904,"ID":312458,"C":312404,"O":"2","U":"http:\/\/www.valerofcu.org\/page312458.html","N":"Boats","T":"_top","R":"","RT":"_blank"},"a312405":{"P":306904,"ID":312459,"C":312405,"O":"3","U":"http:\/\/www.valerofcu.org\/page312459.html","N":"Motorcycles","T":"_top","R":"","RT":"_blank"},"a312406":{"P":306904,"ID":313792,"C":312406,"O":"4","U":"http:\/\/www.valerofcu.org\/page313792.html","N":"Trailers and Motor Homes","T":"_top","R":"","RT":"_blank"},"a312407":{"P":306904,"ID":312460,"C":312407,"O":"5","U":"http:\/\/www.valerofcu.org\/page312460.html","N":"Share Secured","T":"_top","R":"","RT":"_blank"},"a376948":{"P":306403,"ID":378897,"C":376948,"O":"2","U":"http:\/\/www.valerofcu.org\/page378897.html","N":"Real Estate","T":"_top","R":"","RT":"_blank"},"a377604":{"P":376948,"ID":378940,"C":377604,"O":"1","U":"http:\/\/www.valerofcu.org\/page378940.html","N":"Mortgages","T":"_top","R":"","RT":"_blank"},"a377605":{"P":376948,"ID":378943,"C":377605,"O":"2","U":"http:\/\/www.valerofcu.org\/page378943.html","N":"Home Equity Loans","T":"_top","R":"","RT":"_blank"},"a377606":{"P":376948,"ID":378942,"C":377606,"O":"3","U":"http:\/\/www.valerofcu.org\/page378942.html","N":"Home Improvement Loans","T":"_top","R":"","RT":"_blank"},"a377607":{"P":376948,"ID":377612,"C":377607,"O":"4","U":"http:\/\/www.valerofcu.org\/page377612.html","N":"Land Purchases","T":"_top","R":"","RT":"_blank"},"a377608":{"P":376948,"ID":377613,"C":377608,"O":"5","U":"http:\/\/www.valerofcu.org\/page377613.html","N":"Construction Loans","T":"_top","R":"","RT":"_blank"},"a377609":{"P":376948,"ID":377614,"C":377609,"O":"6","U":"http:\/\/www.valerofcu.org\/page377614.html","N":"Home Equity Lines of Credit","T":"_top","R":"","RT":"_blank"},"a306905":{"P":306403,"ID":312461,"C":306905,"O":"3","U":"http:\/\/www.valerofcu.org\/page312461.html","N":"Signature","T":"_top","R":"","RT":"_blank"},"a438780":{"P":306403,"ID":438781,"C":438780,"O":"4","U":"http:\/\/www.valerofcu.org\/page438781.html","N":"Line of Credit","T":"_top","R":"","RT":"_blank"},"a306907":{"P":306403,"ID":312464,"C":306907,"O":"5","U":"http:\/\/www.valerofcu.org\/page312464.html","N":"Credit Cards","T":"_top","R":"","RT":"_blank"},"a469745":{"P":306403,"ID":469746,"C":469745,"O":"6","U":"http:\/\/www.valerofcu.org\/payment protection.html","N":"Payment Protection","T":"_top","R":"","RT":"_blank"},"a306404":{"P":306400,"ID":388839,"C":306404,"O":"4","U":"http:\/\/www.valerofcu.org\/online-banking.html","N":"Online Banking","T":"_top","R":"","RT":"_blank"},"a438209":{"P":306404,"ID":438210,"C":438209,"O":"1","U":"https:\/\/www.valerofcuhb.org\/onlineserv\/HB\/Signon.cgi","N":"Sign In","T":"_top","R":"https:\/\/www.valerofcuhb.org\/onlineserv\/HB\/Signon.cgi","RT":"_top"},"a438205":{"P":306404,"ID":438208,"C":438205,"O":"2","U":"http:\/\/www.valerofcu.org\/e-statements.html","N":"e-Statements","T":"_top","R":"","RT":"_blank"},"a440775":{"P":438205,"ID":440776,"C":440775,"O":"1","U":"https:\/\/clientadmin.digitalmailer.com\/clientfiles\/159\/login.asp","N":"e-Statement Log In","T":"_top","R":"https:\/\/clientadmin.digitalmailer.com\/clientfiles\/159\/login.asp","RT":"_top"},"a563540":{"P":306404,"ID":563541,"C":563540,"O":"3","U":"https:\/\/www.gotomycard.com\/?&E=0&C=0&S=0&lnum=104391","N":"GoToMyCard","T":"_top","R":"https:\/\/www.gotomycard.com\/?&E=0&C=0&S=0&lnum=104391","RT":"_top"},"a306405":{"P":306400,"ID":306727,"C":306405,"O":"5","U":"http:\/\/www.vfcu.pfyfn.com\/","N":"Investments","T":"_top","R":"http:\/\/www.vfcu.pfyfn.com\/","RT":"_top"},"a306712":{"P":306400,"ID":306728,"C":306712,"O":"6","U":"http:\/\/www.valerofcu.org\/page306728.html","N":"Rates","T":"_top","R":"","RT":"_blank"},"a306716":{"P":306712,"ID":306729,"C":306716,"O":"1","U":"http:\/\/www.valerofcu.org\/page306729.html","N":"Share Certificates","T":"_top","R":"","RT":"_blank"},"a306717":{"P":306712,"ID":306730,"C":306717,"O":"2","U":"http:\/\/www.valerofcu.org\/page306730.html","N":"Savings","T":"_top","R":"","RT":"_blank"},"a306719":{"P":306712,"ID":306731,"C":306719,"O":"3","U":"http:\/\/www.valerofcu.org\/page306731.html","N":"Loans","T":"_top","R":"","RT":"_blank"},"a306713":{"P":306400,"ID":306732,"C":306713,"O":"7","U":"http:\/\/www.valerofcu.org\/page306732.html","N":"Additional Services","T":"_top","R":"","RT":"_blank"},"a499601":{"P":306400,"ID":499602,"C":499601,"O":"8","U":"http:\/\/www.valerofcu.org\/financial-calculators.html","N":"Calculators","T":"_top","R":"","RT":"_blank"}},alignment:"Horizontal",animate:0})});